package com.youngjun.generator;

/**
 * 数据库字段封装类
 * Created by Ay on 2017/5/3.
 */
public class Column {

    /**
     * 数据库字段名称
     **/
    private String columnName;
    /**
     * 数据库字段类型
     **/
    private String columnType;

    private int columnSize;
    /**
     * 数据库字段小数精度
     **/
    private int decimalDigits;
    /**
     * 数据库字段首字母小写且去掉下划线字符串
     **/
    private String javaFieldName;

    private String javaFieldNameCapitalize;

    /**
     * 字段类型
     */
    private JavaFieldType javaFieldType;
    /**
     * 数据库字段注释
     **/
    private String columnComment;

    public String getColumnName() {
        return columnName;
    }

    public Column setColumnName(String columnName) {
        this.columnName = columnName;
        return this;
    }

    public String getColumnType() {
        return columnType;
    }

    public Column setColumnType(String columnType) {
        this.columnType = columnType;
        return this;
    }

    public int getColumnSize() {
        return columnSize;
    }

    public Column setColumnSize(int columnSize) {
        this.columnSize = columnSize;
        return this;
    }

    public int getDecimalDigits() {
        return decimalDigits;
    }

    public Column setDecimalDigits(int decimalDigits) {
        this.decimalDigits = decimalDigits;
        return this;
    }

    public String getJavaFieldName() {
        return javaFieldName;
    }

    public Column setJavaFieldName(String javaFieldName) {
        this.javaFieldName = javaFieldName;
        return this;
    }

    public JavaFieldType getJavaFieldType() {
        return javaFieldType;
    }

    public Column setJavaFieldType(JavaFieldType javaFieldType) {
        this.javaFieldType = javaFieldType;
        return this;
    }

    public String getColumnComment() {
        return columnComment;
    }

    public Column setColumnComment(String columnComment) {
        this.columnComment = columnComment;
        return this;
    }

    public String getJavaFieldNameCapitalize() {
        return javaFieldNameCapitalize;
    }

    public Column setJavaFieldNameCapitalize(String javaFieldNameCapitalize) {
        this.javaFieldNameCapitalize = javaFieldNameCapitalize;
        return this;
    }
}